package com.itheima.mMothodDemo;

import java.util.Scanner;

/*
    四舍五入
 */
public class Work03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double num = sc.nextDouble();
        System.out.println(getNum(num));
    }

    public static int getNum(double num) {
        double num1 = num - (int) num;
        if (num1 < 0.5) {
            num1 = 0;
        } else {
            num1 = 1;
        }
        int num2 = (int) (num + num1);
        return num2;
    }
}
